<?php
if (isset($_POST['save'])){

	$image=$_POST['image'];
	$name=$_POST['name'];
	$degree=$_POST['degree'];
	$position=$_POST['position'];
	$blog=$_POST['ws/b'];
	$about=$_POST['about'];
	$address=$_POST['address'];
	$email=$_POST['email'];
	$mob=$_POST['mob'];
	$phone=$_POST['phone'];

	mysql_connect("localhost","root","");
	mysql_select_db("csf");

	$sql=mysql_query("INSERT INTO lecturers(id, image, name, degree, position, blog, about, address, email, mob, phone)
	                   VALUES(null, '$image','$name','$degree','$position', '$blog', '$about', 'address', 'email', 'mob', 'phone')");
	if($sql){
		echo "Profile details has been Added!";

	}
	else {

		echo "Unable to add profile!" . mysql_error();
	}
	mysql_close();


}else {
	echo "failed". mysql_error();
}

?>